<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <link rel="stylesheet" href="/static/css/bootstrap.min.css">
    <script src="/static/js/jquery-3.5.1.min.js"></script>
    <script src="/static/js/popper.min.js"></script>
    <script src="/static/js/bootstrap.min.js"></script>
    {% block head %}
        <title>基础模板</title>
    {% endblock %}
</head>
<body>

<nav class="navbar navbar-expand-lg navbar-light bg-light">
    <div class="collapse navbar-collapse" id="navbarSupportedContent">
        <ul class="navbar-nav mr-auto">
            <li class="nav-item active">
                <a class="nav-link" href="/">首页 <span class="sr-only">(current)</span></a>
            </li>
            <li class="nav-item">
                <a class="nav-link" href="/views/user">用户管理</a>
            </li>
            <li class="nav-item">
                <a class="nav-link" href="/views/stock">股票管理</a>
            </li>
            <li class="nav-item">
                <a class="nav-link" href="/views/trade">股票交易</a>
            </li>
            <li class="nav-item">
                <a class="nav-link" href="/views/stat">分析报表</a>
            </li>
            <li class="nav-item">
                <a class="nav-link" href="/auth/logout">退出</a>
            </li>
        </ul>
    </div>
</nav>
{% block body %}
    <p>基础模板内容</p>
{% endblock %}
{% for message in get_flashed_messages() %}
    <div class="alert alert-warning">
        <button type="button" class="close" data-dismiss="alert">&times;</button>
        {{ message }}
    </div>
{% endfor %}
</body>
</html>